home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.4)
-
-
- class xhtmlXmlMode:
- '''Class for special handling of XHTML document types.'''
-
- def getIgnoredTags(self):
- '''Returns array of tags to be ignored.'''
- return []
-
-
- def getFinalTags(self):
- """Returns array of tags to be considered 'final'."""
- return [
- 'p',
- 'li',
- 'pre']
-
-
- def getTreatedAttributes(self):
- '''Returns array of tag attributes which content is to be translated'''
- return [
- 'title',
- 'alt']
-
-
- def getSpacePreserveTags(self):
- '''Returns array of tags in which spaces are to be preserved.'''
- return [
- 'pre']
-
-
- def preProcessXml(self, doc, msg):
- '''Preprocess a document and perhaps adds some messages.'''
- pass
-
-
- def postProcessXmlTranslation(self, doc, language, translators):
- '''Sets a language and translators in "doc" tree.
-
- "translators" is a string consisted of translator credits.
- "language" is a simple string.
- "doc" is a libxml2.xmlDoc instance.'''
- pass
-
-
- def getStringForTranslators(self):
- """Returns None or a string to be added to PO files.
-
- Common example is 'translator-credits'."""
- pass
-
-
- def getCommentForTranslators(self):
- '''Returns a comment to be added next to string for crediting translators.
-
- It should explain the format of the string provided by getStringForTranslators().'''
- pass
-
-
-